package com.fulin.jdk8.comp;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;

/**
 * @Description TODO
 * @Author fulin
 * @Date 2022/4/7 17:10
 **/
public class TestComp {
    public static void main(String[] args) {
        List<Integer> list = new LinkedList<Integer>();
        list.add(3);
        list.add(5);
        list.add(1);
        list.add(20);
        list.add(0);

        list.sort(Comparator.comparing(Integer::intValue));
        System.out.println(list);
    }
}
